package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户消息通知业务对象
 *
 * @author ruoyi
 * @date 2024-12-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysUserMessageBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 发送者
     */
    @NotNull(message = "发送者不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sender;

    /**
     * 接收者
     */
    @NotNull(message = "接收者不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long receiver;
    private String senderName;

    /**
     * 类型：1留言提醒、2问卷提醒
     */
    @NotNull(message = "类型：1留言提醒、2问卷提醒不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer msgType;

    /**
     * 内容
     */
    private String content;

    /**
     * 是否已读，1是，0否
     */
    private Integer isRead;


}
